package com.member.shop.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.member.shop.domain.SysBizCouponGoodsUser;

import java.util.List;

/**
 * 用户优惠券指定商品Service接口
 *
 * @author lixinchen
 * @date 2024-05-11
 */
public interface ISysBizCouponGoodsUserService extends IService<SysBizCouponGoodsUser> {
    /**
     * 查询用户优惠券指定商品
     *
     * @param id 用户优惠券指定商品主键
     * @return 用户优惠券指定商品
     */
    public SysBizCouponGoodsUser selectSysBizCouponGoodsUserById(Long id);

    /**
     * 查询用户优惠券指定商品列表
     *
     * @param queryWrapper 用户优惠券指定商品
     * @return 用户优惠券指定商品集合
     */
    public List<SysBizCouponGoodsUser> selectSysBizCouponGoodsUserList(LambdaQueryWrapper<SysBizCouponGoodsUser> queryWrapper);

    /**
     * 新增用户优惠券指定商品
     *
     * @param sysBizCouponGoodsUser 用户优惠券指定商品
     * @return 结果
     */
    public int insertSysBizCouponGoodsUser(SysBizCouponGoodsUser sysBizCouponGoodsUser);

    /**
     * 修改用户优惠券指定商品
     *
     * @param sysBizCouponGoodsUser 用户优惠券指定商品
     * @return 结果
     */
    public int updateSysBizCouponGoodsUser(SysBizCouponGoodsUser sysBizCouponGoodsUser);

    /**
     * 批量删除用户优惠券指定商品
     *
     * @param ids 需要删除的用户优惠券指定商品主键集合
     * @return 结果
     */
    public int deleteSysBizCouponGoodsUserByIds(Long[] ids);

    /**
     * 删除用户优惠券指定商品信息
     *
     * @param id 用户优惠券指定商品主键
     * @return 结果
     */
    public int deleteSysBizCouponGoodsUserById(Long id);

    SysBizCouponGoodsUser getByUserIdAndReceiveId(Long userId, Long receiveId, Long goodsId);
    SysBizCouponGoodsUser getByUserIdAndReceiveIdByGoodsIds(Long userId, Long receiveId, List<Long> goodsIdList);
    List<SysBizCouponGoodsUser> getByUserIdAndReceiveIdByGoodsIds2(Long userId, Long receiveId, List<Long> goodsIdList);
}
